package com.gravata.enigma.adapter;

import java.util.List;

import android.content.Context;
import android.widget.TextView;

import com.gravata.enigma.GenericArrayAdapter;
import com.gravata.enigma.R;
import com.gravata.enigma.model.Transponder;

public class TransponderComboAdapter extends GenericArrayAdapter<Transponder>{

	public TransponderComboAdapter(Context context, List<Transponder> objects) {
		super(context,android.R.layout.simple_spinner_item,android.R.layout.simple_spinner_dropdown_item, objects,context.getString(R.string.transponder));
	}

	@Override
	public void drawText(TextView textView, Transponder object) {
		textView.setText(object.toString());
	}

}
